/* 教师表格样式 */
.teacher-table-container {
  width: 100%;
  overflow-x: auto;
}

.teacher-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.teacher-table thead {
  background-color: #fafafa;
}

.teacher-table th {
  padding: 12px 8px;
  text-align: left;
  font-weight: 600;
  color: #666;
  border-bottom: 2px solid #e8e8e8;
  white-space: nowrap;
}

.teacher-table td {
  padding: 12px 8px;
  border-bottom: 1px solid #f0f0f0;
}

.teacher-row:hover {
  background-color: #f5f5f5;
}

/* 可点击姓名样式 */
.clickable-name {
  color: #1890ff;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s;
}

.clickable-name:hover {
  color: #40a9ff;
  text-decoration: underline;
}

.teacher-row:hover .clickable-name {
  text-decoration: underline;
}

/* 状态标签样式 */
.status-badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}

.status-active {
  background-color: #f6ffed;
  color: #52c41a;
  border: 1px solid #b7eb8f;
}

.status-leave {
  background-color: #fff7e6;
  color: #fa8c16;
  border: 1px solid #ffd591;
}

.status-retired {
  background-color: #f5f5f5;
  color: #8c8c8c;
  border: 1px solid #d9d9d9;
}

/* 操作按钮样式 */
.action-buttons {
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.btn-view,
.btn-edit,
.btn-delete {
  padding: 4px 12px;
  border: none;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.3s;
  white-space: nowrap;
}

.btn-view {
  background-color: #1890ff;
  color: white;
}

.btn-view:hover {
  background-color: #40a9ff;
}

.btn-edit {
  background-color: #52c41a;
  color: white;
}

.btn-edit:hover {
  background-color: #73d13d;
}

.btn-delete {
  background-color: #ff4d4f;
  color: white;
}

.btn-delete:hover {
  background-color: #ff7875;
}

/* 无数据样式 */
.no-data {
  text-align: center;
  padding: 40px 0;
  color: #999;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .teacher-table {
    font-size: 12px;
  }
  
  .teacher-table th,
  .teacher-table td {
    padding: 8px 4px;
  }
  
  .action-buttons {
    flex-direction: column;
    gap: 4px;
  }
  
  .btn-edit,
  .btn-delete {
    font-size: 11px;
    padding: 2px 4px;
  }
}